import {EngineerOrder} from "@/api/engineer/types";

/**
* 订单查询参数类型
*/
export interface OrderQuery extends PageQuery {
 typeId?: number;
 orderEnd?: string;
 orderStatr?:string;
 status?: number;
 orderCode?:string;
 name?:string;
 principalAccountName?:string;
 auditStatus?: number;
 settlementStatus?: number;
}
/**
 * 订单分页列表项
 */
export interface OrderAwait {
  orderCode?: string,
  name?: string,
  typeName?: string,
  labelName?: string,
  principalTypeName?: string,
  principalName?: string,
  address?: string,
  orderStatr?: string,
  orderQuantity?: string,
  orderMoney?: string,
  statusText?: string,
}
export type OrderAwaitList = PageResult<OrderAwait[]>;


/**
 * 订单表单类型
 */
export interface OrderForm {
  orderUpstreamType?: string,
  upstreamName?: string,
  upstreamMoeny?: number,
  numberPeopleNeed?: number,
  perCapitaCost?: number,
  actualEstablishment?: number,
  vacancy?: number,
  id?:number;
  name?:string;
  typeId?:string|any[];
  labelIds?:any[]|string;
  principal?:string;
  address?:string;
  orderQuantity?:string;
  qdQuantity?: string;
  price?:string;
  remark?:string;
  orderStatr?:string;
  orderEnd?:string;
  orderTime?:string[] | null;
  principalType?:number;
  description?:string;
  latitude?:string;
  longitude?:string;
  addressItem?:string;
  workAddress?:string;
  startAge?:string;
  endAge?:string;
  employmentDay?:string;
  engineerId?:string,
  principalAccountName?:string;
}

/**
 * 用户列表类型
 */
export interface Engineer {
  id?: number|string;
  engineerRealname?: string;
  engineerSexName?: string;
  phone?: string;
}
export type EngineerList = Engineer[];
/**
 * 用户列表查询
 */
export interface Engineerparmas {
  order_id?: number|string;
  name?: string;
  engineerId?:string
}
/**
 * 结算表头类型
 */
export interface SettlementForm {
  id?:number|string;
  orderMoney: number;
  insureMoney: number;
  commissionMoney: number;
  settlementMoney: number;
  casualOrderPaymentRecordItems:any[];
  orderDate:string;
  employmentDay:string;
  typeName:string;
  price:string;
}
/**
 * 结算列表类型
 */
export interface Settlement {
  id?: number|string;
  engineerRealname?: string;
  phone?: string;
  orderMoney?: number;
  insureMoney?: number;
  commissionMoney?: number;
  settlementMoney?: number;
}

export interface Examine {
  id?: number

  /**
   * 订单id
   */
  orderId?: number

  /**
   * 节点名称
   */
  nodeName?: string

  /**
   * 用户名称
   */
  userName?: string

  /**
   * 备注
   */
  remark?: string
}

export type ExamineListResult = PageResult<Examine[]>;

